package com.example.review;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import com.example.review.TabLayout.activity.ATabLayoutActivity;
import com.example.review.base.BaseActivity;
<<<<<<< HEAD
import com.example.review.databinding.ActivityMainBinding;
import com.example.review.viewpager.ViewPagerActivity;
=======
import com.example.review.utils.skillUtils.LogUtils;
>>>>>>> 540436a43acd8cb0db19dda15bfa239c53e65ef7

public class MainActivity extends BaseActivity {
    private ActivityMainBinding binding;

    private static final String TAG = "MainActivity";


    @Override
    /**
     * 活动创建的时候调用
     */
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
<<<<<<< HEAD
        //setContentView(R.layout.activity_main);

        //viewbinding方式
        binding = ActivityMainBinding.inflate(getLayoutInflater());
        //获取根视图
        View view = binding.getRoot();
        setContentView(view);


=======
        setContentView(R.layout.activity_main);
        LogUtils.d("logutils","这是日志打印的工具类");
>>>>>>> 540436a43acd8cb0db19dda15bfa239c53e65ef7
        Log.d(TAG, "这是日志打印工具log");
        Log.i("diy", "onCreate: ");
        Log.d("diy", "自定义过滤器 ");


        Button button3=findViewById(R.id.button_3);
        button3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Log.d("diy", "onClick: 点击了button3");
                //两个参数 启动活动的上下文，目标活动
                Intent intent = new Intent(MainActivity.this,chapterTwoActivity.class);
                startActivity(intent);
            }
        });

        Button buttonTc3=findViewById(R.id.toC3);
        buttonTc3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent(MainActivity.this,chapterThreeActivity.class);
                startActivity(intent);
            }
        });
        Button buttonTc4=findViewById(R.id.toC4);
        buttonTc4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent(MainActivity.this,chapterFourActivity.class);
                startActivity(intent);
            }
        });
        Button buttonTc5=findViewById(R.id.toC5);
        buttonTc5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent(MainActivity.this,chapterFiveActivity.class);
                startActivity(intent);
            }
        });
        Button buttonTc6=findViewById(R.id.toC6);
        buttonTc6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent(MainActivity.this,chapterSixActivity.class);
                startActivity(intent);
            }
        });
        Button buttonTc7=findViewById(R.id.toC7);
        buttonTc7.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent(MainActivity.this,chapterSevenActivity.class);
                startActivity(intent);
            }
        });

        Button buttonTc8=findViewById(R.id.toC8);
        buttonTc8.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent(MainActivity.this,chapterEightActivity.class);
                startActivity(intent);
            }
        });
        Button buttonTc9=findViewById(R.id.toC9);
        buttonTc9.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent(MainActivity.this,chapterNineActivity.class);
                startActivity(intent);
            }
        });

        Button buttonTc10=findViewById(R.id.toC10);
        buttonTc10.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

<<<<<<< HEAD
                Intent intent = new Intent(MainActivity.this,ViewBindingActivity.class);
=======
                Intent intent = new Intent(MainActivity.this,chapterTenActivity.class);
>>>>>>> 540436a43acd8cb0db19dda15bfa239c53e65ef7
                startActivity(intent);
            }
        });

<<<<<<< HEAD
        binding.toC11.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, ATabLayoutActivity.class);
=======

        Button buttonTc11=findViewById(R.id.toC11);
        buttonTc11.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent(MainActivity.this,chapterElevenActivity.class);
>>>>>>> 540436a43acd8cb0db19dda15bfa239c53e65ef7
                startActivity(intent);
            }
        });

<<<<<<< HEAD
        binding.toC12.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, ViewPagerActivity.class);
                startActivity(intent);
            }
        });
=======

        Button buttonTc12=findViewById(R.id.toC12);
        buttonTc12.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent(MainActivity.this,chapterTwelveActivity.class);
                startActivity(intent);
            }
        });


>>>>>>> 540436a43acd8cb0db19dda15bfa239c53e65ef7

    }


}